<!DOCTYPE html>


<html lang="en">
  

    <head>
      <meta charset="utf-8" />
        
      <meta name="description" content="時光的个人博客" />
      
      <meta
        name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1"
      />
	  <meta name="referrer" content="no-referrer" />

      <title>重装系统前后需要做的事 |  時光</title>
  <meta name="generator" content="hexo-theme-ayer">
      
      <link rel="shortcut icon" href="/favicon.ico" />
       
<link rel="stylesheet" href="/dist/main.css">

      
<link rel="stylesheet" href="/css/fonts/remixicon.css">

      
<link rel="stylesheet" href="/css/custom.css">
 
      <script src="https://cdn.staticfile.org/pace/1.2.4/pace.min.js"></script>
       
 

      <link
        rel="stylesheet"
        href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-bulma@5.0.1/bulma.min.css"
      />
      <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.19/dist/sweetalert2.min.js"></script>

      <!-- mermaid -->
      
      <style>
        .swal2-styled.swal2-confirm {
          font-size: 1.6rem;
        }
      </style>
    <link rel="alternate" href="/atom.xml" title="時光" type="application/atom+xml">
</head>
  </html>
</html>


<body>
  <div id="app">
    
      
    <main class="content on">
      <section class="outer">
  <article
  id="post-重装系统后需要做的事"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    
    <header class="article-header">
       
<h1 class="article-title sea-center" style="border-left:0" itemprop="name">
  重装系统前后需要做的事
</h1>
 

      
    </header>
     
    <div class="article-meta">
      <a href="/2023/03/19/%E9%87%8D%E8%A3%85%E7%B3%BB%E7%BB%9F%E5%90%8E%E9%9C%80%E8%A6%81%E5%81%9A%E7%9A%84%E4%BA%8B/" class="article-date">
  <time datetime="2023-03-19T06:17:00.000Z" itemprop="datePublished">2023-03-19</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E5%B0%8F%E6%8A%80%E8%83%BD/">小技能</a>
  </div>
  
<div class="word_count">
    <span class="post-time">
        <span class="post-meta-item-icon">
            <i class="ri-quill-pen-line"></i>
            <span class="post-meta-item-text"> Word count:</span>
            <span class="post-count">1.2k</span>
        </span>
    </span>

    <span class="post-time">
        &nbsp; | &nbsp;
        <span class="post-meta-item-icon">
            <i class="ri-book-open-line"></i>
            <span class="post-meta-item-text"> Reading time≈</span>
            <span class="post-count">4 min</span>
        </span>
    </span>
</div>
 
    </div>
      
    <div class="tocbot"></div>




  
    <div class="article-entry" itemprop="articleBody">
       
  <h1 id="重装系统前后需要做的事"><a href="#重装系统前后需要做的事" class="headerlink" title="重装系统前后需要做的事"></a>重装系统前后需要做的事</h1><h2 id="重装系统前需要做的事"><a href="#重装系统前需要做的事" class="headerlink" title="重装系统前需要做的事"></a>重装系统前需要做的事</h2><h3 id="1-1-重要资料备份"><a href="#1-1-重要资料备份" class="headerlink" title="1.1 重要资料备份"></a>1.1 重要资料备份</h3><p>重装系统前最重要的事情就是将重要资料进行备份，重装系统后C盘会被格式化，C盘以外的其他盘符文件可以选择保留，但为了安全起见，所有资料都建议进行备份，已安装的软件也可能造成损坏，快捷方式，服务项等会被清除，所以还是建议重装</p>
<p>我安装应用时习惯在推荐安装目录上直接修改盘符地址，这样查找软件时也方便快捷</p>
<p>安装在C盘以外的软件，可以尝试找到应用程序安装位置，点击运行即可，一般会存放在以该软件命名的文件夹里或者其bin目录内</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/55be9113e97a48cd9a3b756cc7942b6a" alt="image-20230204160318563"></p>
<p>找到应用程序后可为将其固定到开始菜单或创建快捷方式，操作如下：</p>
<p>选中应用程序右键 &gt; 显示更多选项 &gt; 创建快捷方式</p>
<p>选中应用程序右键 &gt; 显示更多选项 &gt; 发送到 &gt; 桌面快捷方式</p>
<h3 id="1-2-必要工具准备"><a href="#1-2-必要工具准备" class="headerlink" title="1.2 必要工具准备"></a>1.2 必要工具准备</h3><p>既然要重装系统，当然要准备好要按照的系统镜像，可以去官网下载ISO镜像，或者利用U盘制作PE系统，推荐后者</p>
<p>重装系统前建议提前下载好相应的网卡驱动或者安装 <a target="_blank" rel="noopener" href="https://www.sysceo.com/Software-softwarei-id-245.html">驱动总裁网卡版</a>，<a target="_blank" rel="noopener" href="http://dm.weishi.360.cn/home.html">360驱动大师网卡版</a> 等第三方驱动工具，防止重装系统后因网卡驱动缺失导致联不了网的问题</p>
<p>若重装后真的出现网络问题，可使用手机共享网络解燃眉之急，当然前提是需要有一根可以连接手机的数据线</p>
<p>操作方式（本人机型 ViVO S15 Pro）</p>
<p>打开个人热点 》 其他共享方式 》 通过USB共享网络  （亲测蓝牙不好使）</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/86c565c02ef4415c80751f460bd8a0b1" style="zoom:33%;" /><img src="https://s1.vika.cn/space/2023/03/20/676c6ebbf0b54c358f98832a5cfae231" alt="image-20230208083156510" style="zoom:33%;" /></p>
<p>电脑出现这个图标就代表链接成功，电脑可以使用手机热点上网了</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/2b5acff806d041e2a2adf9386c276d5d" alt="image-20230208083215007"></p>
<h2 id="重装系统后需要做的事"><a href="#重装系统后需要做的事" class="headerlink" title="重装系统后需要做的事"></a>重装系统后需要做的事</h2><h3 id="2-1-更新驱动"><a href="#2-1-更新驱动" class="headerlink" title="2.1 更新驱动"></a>2.1 更新驱动</h3><p>用Windows自带的更新功能更新即可，为保证系统正常运行，系统安装后会自动检测更新</p>
<p>若想要更好的性能体验，可到各主板或电脑厂商官网自行下载驱动</p>
<h3 id="2-2-激活系统"><a href="#2-2-激活系统" class="headerlink" title="2.2 激活系统"></a>2.2 激活系统</h3><p>新装的系统需要重新激活，未激活的系统一些功能将不能正常使用，例如个性化中的显示桌面图标功能</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/1b84d69075c24b209f2b0c8280d2fca7" alt="image-20230204134539496"></p>
<p>激活步骤</p>
<p>以管理员方式打开cmd窗口，按步骤输入</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ipk W269N-WFGWX-YVC9B-4J6C9-T83GX</span><br></pre></td></tr></table></figure>

<p><img src="https://s1.vika.cn/space/2023/03/20/517379679df14cdc9fc182a9d343fe04" alt="image-20230204134756019"></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">slmgr /skms kms.03k.org</span><br></pre></td></tr></table></figure>

<p><img src="https://s1.vika.cn/space/2023/03/20/4829ab23ec0a48fdbbd3fd5c0ea23ca3" alt="image-20230204134918443"></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">slmgr /ato</span><br></pre></td></tr></table></figure>

<p><img src="https://s1.vika.cn/space/2023/03/20/b6ec452420044d48b12f1f05ba2021a6" alt="image-20230204140217365"></p>
<p>分分钟轻松激活</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/753c327f7cac47c89823bed7e17a8f92" alt="image-20230204140700295"></p>
<p>参考</p>
<blockquote>
<p><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1TL4y1B7iz">https://www.bilibili.com/video/BV1TL4y1B7iz</a></p>
<p>bilibili 博主：爱玩的安哥</p>
<p>用户id: 500892783</p>
</blockquote>
<blockquote>
<p> <a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/81561582">KMS服务,一句命令激活windows&#x2F;office</a></p>
</blockquote>
<blockquote>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/it-tsz/p/9734585.html">kms可用激活服务器地址</a></p>
</blockquote>
<h3 id="2-3-系统设置"><a href="#2-3-系统设置" class="headerlink" title="2.3 系统设置"></a>2.3 系统设置</h3><h4 id="1、关闭-bitLocker-驱动器加密"><a href="#1、关闭-bitLocker-驱动器加密" class="headerlink" title="1、关闭 bitLocker 驱动器加密"></a>1、关闭 bitLocker 驱动器加密</h4><p>如果磁盘上有个锁的标志，就代表已经打开了 bitLocker 功能，如果电脑上没有什么国家机密的话，建议关闭该功能，因为一旦密码忘记，就可能导致磁盘无法访问，找回密码也靠运气</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/12a48cb36e844f0584209d4559df6947" alt="image-20230205081651033"></p>
<p>如果系统盘设置了该功能，开机启动时可能需要输入密码才能访问</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/2aa19fb9d0704decadc6f1cbddc8f2cf" alt="image-20230205081931913"></p>
<p>关闭步骤</p>
<p>找到 BitLocker 管理界面进行关闭即可 </p>
<p>设置 &gt; 隐私和安全性 &gt; BitLocker驱动器加密 </p>
<p><img src="https://s1.vika.cn/space/2023/03/20/6748500ef29d456c9dbcb270a1adfc3e" alt="image-20230205082859117"></p>
<p>或者 </p>
<p>控制面板 查看方式选择小图标 &gt; BitLocker驱动器加密</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/fea6797565cb4fdd9a05a5e527dc3692" alt="image-20230205082709174"></p>
<p>关闭时需要对数据进行解密，界面后即可关闭该功能</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/1fe18c04a4474576bff38e1a3a2abd43" alt="image-20230205083017041"></p>
<h4 id="2、设置虚拟内存"><a href="#2、设置虚拟内存" class="headerlink" title="2、设置虚拟内存"></a>2、设置虚拟内存</h4><blockquote>
<p><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1Zj411g73o">虚拟内存正确的认识和详细的设置</a></p>
</blockquote>
<p>内存释放工具RamMap</p>
<blockquote>
<p><a target="_blank" rel="noopener" href="https://pan.baidu.com/s/1nzANrpllrASNJnYhkp8ozg?pwd=1k2d">RamMap安装包</a></p>
</blockquote>
<p>使用方法：选择Empty选项卡,依次点击以下5个列表</p>
<p>亲测能释放20%内存</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/6bc38955885249baab73ba3380ca3223" alt="image-20230319135459785"></p>
<h3 id="2-4-操作优化"><a href="#2-4-操作优化" class="headerlink" title="2.4 操作优化"></a>2.4 操作优化</h3><h4 id="1、恢复-Win10-右键菜单功能，使用工具一键启用即可"><a href="#1、恢复-Win10-右键菜单功能，使用工具一键启用即可" class="headerlink" title="1、恢复 Win10 右键菜单功能，使用工具一键启用即可"></a>1、恢复 Win10 右键菜单功能，使用工具一键启用即可</h4><p><img src="https://s1.vika.cn/space/2023/03/20/f2c8d02d68e94b9e93ba76f00b48a9f4" alt="image-20230204164049642"></p>
<h4 id="2、调整文件存储设置"><a href="#2、调整文件存储设置" class="headerlink" title="2、调整文件存储设置"></a>2、调整文件存储设置</h4><p>更改应用、文档、音乐、图片、视频和地图的默认保存位置到其他盘符</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/5b0d8e74c6ab4a97a05a0cc37e84097d" alt="image-20230205083540913"></p>
<h4 id="3、调整软件默认文件保存位置"><a href="#3、调整软件默认文件保存位置" class="headerlink" title="3、调整软件默认文件保存位置"></a>3、调整软件默认文件保存位置</h4><p><img src="https://s1.vika.cn/space/2023/03/20/08ab99d1e6f440968747a30826db4c7f" alt="image-20230208081457556"></p>
<h4 id="4、查看文件时显示文件拓展名及隐藏的项目"><a href="#4、查看文件时显示文件拓展名及隐藏的项目" class="headerlink" title="4、查看文件时显示文件拓展名及隐藏的项目"></a>4、查看文件时显示文件拓展名及隐藏的项目</h4><p><img src="https://s1.vika.cn/space/2023/03/20/61b430bc62964c24b13d7d6878bd1b7b" alt="image-20230205093636326"></p>
<h4 id="5、设置自动隐藏任务栏"><a href="#5、设置自动隐藏任务栏" class="headerlink" title="5、设置自动隐藏任务栏"></a>5、设置自动隐藏任务栏</h4><p>有时候软件界面会被底部任务栏遮挡，影响操作，可设置自动隐藏任务栏，需要任务栏的时候，鼠标移动到任务栏处自动显示任务栏</p>
<p>鼠标点中任务栏右键 》 任务栏设置</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/e954967037b5481eb0fbc70555d31a6d" alt="image-20230209205338624"></p>
<p>在任务栏行为里设置自动隐藏任务栏</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/f1e09d24101b4bc1be1dfda6fa48e9b3" alt="image-20230209205446400"></p>
<h4 id="6、调整用户账户控制设置"><a href="#6、调整用户账户控制设置" class="headerlink" title="6、调整用户账户控制设置"></a>6、调整用户账户控制设置</h4><p>安装软件时总是提示是否允许，每次都通知烦人的，可以调整通知级别</p>
<p>搜索更改用户账户控制设置</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/b4f0c3443fe64f9ebb00fe5611a1fceb" alt="image-20230213203731181"></p>
<p>将通知级别拉到最低，从不通知</p>
<p><img src="https://s1.vika.cn/space/2023/03/20/7a571c0e768f4bffaf95f024144c2ca0" alt="image-20230213203827784"></p>
 
      <!-- reward -->
      
      <div id="reword-out">
        <div id="reward-btn">
          Donate
        </div>
      </div>
      
    </div>
    

    <!-- copyright -->
    
    <div class="declare">
      <ul class="post-copyright">
        <li>
          <i class="ri-copyright-line"></i>
          <strong>Copyright： </strong>
          
          Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
          
        </li>
      </ul>
    </div>
    
    <footer class="article-footer">
       
<div class="share-btn">
      <span class="share-sns share-outer">
        <i class="ri-share-forward-line"></i>
        分享
      </span>
      <div class="share-wrap">
        <i class="arrow"></i>
        <div class="share-icons">
          
          <a class="weibo share-sns" href="javascript:;" data-type="weibo">
            <i class="ri-weibo-fill"></i>
          </a>
          <a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
            <i class="ri-wechat-fill"></i>
          </a>
          <a class="qq share-sns" href="javascript:;" data-type="qq">
            <i class="ri-qq-fill"></i>
          </a>
          <a class="douban share-sns" href="javascript:;" data-type="douban">
            <i class="ri-douban-line"></i>
          </a>
          <!-- <a class="qzone share-sns" href="javascript:;" data-type="qzone">
            <i class="icon icon-qzone"></i>
          </a> -->
          
          <a class="facebook share-sns" href="javascript:;" data-type="facebook">
            <i class="ri-facebook-circle-fill"></i>
          </a>
          <a class="twitter share-sns" href="javascript:;" data-type="twitter">
            <i class="ri-twitter-fill"></i>
          </a>
          <a class="google share-sns" href="javascript:;" data-type="google">
            <i class="ri-google-fill"></i>
          </a>
        </div>
      </div>
</div>

<div class="wx-share-modal">
    <a class="modal-close" href="javascript:;"><i class="ri-close-circle-line"></i></a>
    <p>扫一扫，分享到微信</p>
    <div class="wx-qrcode">
      <img src="//api.qrserver.com/v1/create-qr-code/?size=150x150&data=http://example.com/2023/03/19/%E9%87%8D%E8%A3%85%E7%B3%BB%E7%BB%9F%E5%90%8E%E9%9C%80%E8%A6%81%E5%81%9A%E7%9A%84%E4%BA%8B/" alt="微信分享二维码">
    </div>
</div>

<div id="share-mask"></div>  
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%A5%BD%E7%94%A8%E8%BD%AF%E4%BB%B6/" rel="tag">好用软件</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%8F%90%E5%8D%87%E6%95%88%E7%8E%87/" rel="tag">提升效率</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E9%87%8D%E8%A3%85%E7%B3%BB%E7%BB%9F/" rel="tag">重装系统</a></li></ul>

    </footer>
  </div>

   
  <nav class="article-nav">
    
      <a href="/2023/03/19/%E5%88%B6%E4%BD%9CU%E7%9B%98%E5%A4%B4%E5%83%8F%E5%9B%BE%E6%A0%87/" class="article-nav-link">
        <strong class="article-nav-caption">上一篇</strong>
        <div class="article-nav-title">
          
            如何制作U盘头像图标
          
        </div>
      </a>
    
    
      <a href="/2023/03/18/Typora%20%E5%9B%BE%E7%89%87%E8%87%AA%E5%8A%A8%E4%B8%8A%E4%BC%A0%E8%87%B3%E8%85%BE%E8%AE%AF%E4%BA%91Cos%20%E6%9C%8D%E5%8A%A1/" class="article-nav-link">
        <strong class="article-nav-caption">下一篇</strong>
        <div class="article-nav-title">Typora 图片自动上传至腾讯云Cos 服务</div>
      </a>
    
  </nav>

   
<!-- valine评论 -->
<div id="vcomments-box">
  <div id="vcomments"></div>
</div>
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<script src="https://cdn.staticfile.org/valine/1.4.16/Valine.min.js"></script>
<script>
  new Valine({
    el: "#vcomments",
    app_id: "dx3B54wOwhi75vxC2IAZagtg-gzGzoHsz",
    app_key: "m4k2fhnFa1iPI4vbofHqMY5X",
    path: window.location.pathname,
    avatar: "monsterid",
    placeholder: "给我的文章加点评论吧~",
    recordIP: true,
  });
  const infoEle = document.querySelector("#vcomments .info");
  if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
    infoEle.childNodes.forEach(function (item) {
      item.parentNode.removeChild(item);
    });
  }
</script>
<style>
  #vcomments-box {
    padding: 5px 30px;
  }

  @media screen and (max-width: 800px) {
    #vcomments-box {
      padding: 5px 0px;
    }
  }

  #vcomments-box #vcomments {
    background-color: #fff;
  }

  .v .vlist .vcard .vh {
    padding-right: 20px;
  }

  .v .vlist .vcard {
    padding-left: 10px;
  }
</style>

 
   
  
   
    <script src="https://cdn.staticfile.org/twikoo/1.4.18/twikoo.all.min.js"></script>
    <div id="twikoo" class="twikoo"></div>
    <script>
        twikoo.init({
            envId: ""
        })
    </script>
 
</article>

</section>
      <footer class="footer">
  <div class="outer">
    <ul>
      <li>
        Copyrights &copy;
        2023
        <i class="ri-heart-fill heart_icon"></i> Shiguang
      </li>
    </ul>
    <ul>
      <li>
        
      </li>
    </ul>
    <ul>
      <li>
        
        
        <span>
  <span><i class="ri-user-3-fill"></i>Visitors:<span id="busuanzi_value_site_uv"></span></span>
  <span class="division">|</span>
  <span><i class="ri-eye-fill"></i>Views:<span id="busuanzi_value_page_pv"></span></span>
</span>
        
      </li>
    </ul>
    <ul>
      
    </ul>
    <ul>
      
    </ul>
    <ul>
      <li>
        <!-- cnzz统计 -->
        
        <script type="text/javascript" src='https://s9.cnzz.com/z_stat.php?id=1278069914&amp;web_id=1278069914'></script>
        
      </li>
    </ul>
  </div>
</footer>    
    </main>
    <div class="float_btns">
      <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>

<div class="todark" id="todark">
  <i class="ri-moon-line"></i>
</div>

    </div>
    <aside class="sidebar on">
      <button class="navbar-toggle"></button>
<nav class="navbar">
  
  <div class="logo">
    <a href="/"><img src="/images/ayer-side.svg" alt="時光"></a>
  </div>
  
  <ul class="nav nav-main">
    
    <li class="nav-item">
      <a class="nav-item-link" href="/">主页</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/archives">归档</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/categories">分类</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/tags">标签</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/friends">友链</a>
    </li>
    
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      
      <a class="nav-item-link nav-item-search"  title="Search">
        <i class="ri-search-line"></i>
      </a>
      
      
      <a class="nav-item-link" target="_blank" href="/atom.xml" title="RSS Feed">
        <i class="ri-rss-line"></i>
      </a>
      
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
    </aside>
    <div id="mask"></div>

<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>请我喝杯咖啡吧~</p>
  <div class="reward-box">
    
    <div class="reward-item">
      <img class="reward-img" src="/images/alipay.jpg">
      <span class="reward-type">支付宝</span>
    </div>
    
    
    <div class="reward-item">
      <img class="reward-img" src="/images/wechat.jpg">
      <span class="reward-type">微信</span>
    </div>
    
  </div>
</div>
    
<script src="/js/jquery-3.6.0.min.js"></script>
 
<script src="/js/lazyload.min.js"></script>

<!-- Tocbot -->
 
<script src="/js/tocbot.min.js"></script>

<script>
  tocbot.init({
    tocSelector: ".tocbot",
    contentSelector: ".article-entry",
    headingSelector: "h1, h2, h3, h4, h5, h6",
    hasInnerContainers: true,
    scrollSmooth: true,
    scrollContainer: "main",
    positionFixedSelector: ".tocbot",
    positionFixedClass: "is-position-fixed",
    fixedSidebarOffset: "auto",
  });
</script>

<script src="https://cdn.staticfile.org/jquery-modal/0.9.2/jquery.modal.min.js"></script>
<link
  rel="stylesheet"
  href="https://cdn.staticfile.org/jquery-modal/0.9.2/jquery.modal.min.css"
/>
<script src="https://cdn.staticfile.org/justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js"></script>

<script src="/dist/main.js"></script>

<!-- ImageViewer -->
 <!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>

    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">

        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                <!--  Controls are self-explanatory. Order can be changed. -->

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div>

<link rel="stylesheet" href="https://cdn.staticfile.org/photoswipe/4.1.3/photoswipe.min.css">
<link rel="stylesheet" href="https://cdn.staticfile.org/photoswipe/4.1.3/default-skin/default-skin.min.css">
<script src="https://cdn.staticfile.org/photoswipe/4.1.3/photoswipe.min.js"></script>
<script src="https://cdn.staticfile.org/photoswipe/4.1.3/photoswipe-ui-default.min.js"></script>

<script>
    function viewer_init() {
        let pswpElement = document.querySelectorAll('.pswp')[0];
        let $imgArr = document.querySelectorAll(('.article-entry img:not(.reward-img)'))

        $imgArr.forEach(($em, i) => {
            $em.onclick = () => {
                // slider展开状态
                // todo: 这样不好，后面改成状态
                if (document.querySelector('.left-col.show')) return
                let items = []
                $imgArr.forEach(($em2, i2) => {
                    let img = $em2.getAttribute('data-idx', i2)
                    let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
                    let title = $em2.getAttribute('alt')
                    // 获得原图尺寸
                    const image = new Image()
                    image.src = src
                    items.push({
                        src: src,
                        w: image.width || $em2.width,
                        h: image.height || $em2.height,
                        title: title
                    })
                })
                var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, {
                    index: parseInt(i)
                });
                gallery.init()
            }
        })
    }
    viewer_init()
</script> 
<!-- MathJax -->

<!-- Katex -->

<!-- busuanzi  -->
 
<script src="/js/busuanzi-2.3.pure.min.js"></script>
 
<!-- ClickLove -->

<!-- ClickBoom1 -->

<!-- ClickBoom2 -->

<!-- CodeCopy -->
 
<link rel="stylesheet" href="/css/clipboard.css">
 <script src="https://cdn.staticfile.org/clipboard.js/2.0.10/clipboard.min.js"></script>
<script>
  function wait(callback, seconds) {
    var timelag = null;
    timelag = window.setTimeout(callback, seconds);
  }
  !function (e, t, a) {
    var initCopyCode = function(){
      var copyHtml = '';
      copyHtml += '<button class="btn-copy" data-clipboard-snippet="">';
      copyHtml += '<i class="ri-file-copy-2-line"></i><span>COPY</span>';
      copyHtml += '</button>';
      $(".highlight .code pre").before(copyHtml);
      $(".article pre code").before(copyHtml);
      var clipboard = new ClipboardJS('.btn-copy', {
        target: function(trigger) {
          return trigger.nextElementSibling;
        }
      });
      clipboard.on('success', function(e) {
        let $btn = $(e.trigger);
        $btn.addClass('copied');
        let $icon = $($btn.find('i'));
        $icon.removeClass('ri-file-copy-2-line');
        $icon.addClass('ri-checkbox-circle-line');
        let $span = $($btn.find('span'));
        $span[0].innerText = 'COPIED';
        
        wait(function () { // 等待两秒钟后恢复
          $icon.removeClass('ri-checkbox-circle-line');
          $icon.addClass('ri-file-copy-2-line');
          $span[0].innerText = 'COPY';
        }, 2000);
      });
      clipboard.on('error', function(e) {
        e.clearSelection();
        let $btn = $(e.trigger);
        $btn.addClass('copy-failed');
        let $icon = $($btn.find('i'));
        $icon.removeClass('ri-file-copy-2-line');
        $icon.addClass('ri-time-line');
        let $span = $($btn.find('span'));
        $span[0].innerText = 'COPY FAILED';
        
        wait(function () { // 等待两秒钟后恢复
          $icon.removeClass('ri-time-line');
          $icon.addClass('ri-file-copy-2-line');
          $span[0].innerText = 'COPY';
        }, 2000);
      });
    }
    initCopyCode();
  }(window, document);
</script>
 
<!-- CanvasBackground -->

<script>
  if (window.mermaid) {
    mermaid.initialize({ theme: "forest" });
  }
</script>


    
    

  </div>
</body>

</html>